package com.example.doctorstation.POJOMapper;
import com.example.doctorstation.POJOData.Bed;
import java.util.List;

import com.example.doctorstation.POJOData.MetaData;
import org.apache.ibatis.annotations.*;

@Mapper
public interface MetaDataMapper {
    //取所有元数据名称
    @Select("select metadataname from emr_metadata")
    public List<MetaData> getAllMetaDataNames();

    //查看床位信息
    @Select("select metadatavalue from emr_metadata where metadataname = #{arg0}")
    public MetaData getAllMetaDataValueByName(String metadataName);

    //查看床位信息
    @Select("select metadatavalue from emr_metadata where metadataID = #{arg0}")
    public MetaData getAllMetaDataValueByID(Integer ID);
}
